import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore('cart', () => {
    const piniaCart = ref([])
    const piniaAdd=((detail,goods_id)=>{
       let pdcart=piniaCart.value(detail=goods_id.goods.goods_id==0)
       if(piniaCart){
        piniaCart.number++
       }else{
           
       }
    })
    return { piniaCart,piniaAdd }
},
    {
        persist: true,
    },
)
